package com.quzi.kettle.api.response;

import android.util.Log;

import com.example.httprequest.BaseResponseHandler;
import com.google.gson.Gson;
import com.quzi.kettle.bean.http.User;

public abstract class LoginResponse<u extends User> extends BaseResponseHandler<User> {

	@Override
	public void onDataReceived(String str) {
		Log.d("quziresponse",str);
		User user = new Gson().fromJson(str, User.class);
		onSuccess(user);
	}
}
